package com.zhoug.androidlib.content.prodivers;

import android.content.Context;
import android.support.annotation.NonNull;
import android.support.v4.content.FileProvider;

/**
 * AndroidManifest.xml配置
 * <provider
 * android:name="android.support.v4.content.FileProvider"
 * android:authorities="${applicationId}.fileprovider"
 * android:grantUriPermissions="true"
 * android:exported="false">
 * <meta-data
 * android:name="android.support.FILE_PROVIDER_PATHS"
 * android:resource="@xml/z_file_paths"/>
 * </provider>
 */
public class ZFileProvider extends FileProvider {
    public static String getAuthority(@NonNull Context context) {
        return context.getPackageName() + ".fileprovider";
    }

}
